<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class User extends TXT_Controller{

    /**
     * account 
     * 账户管理
     * 
     * @access public
     * @return void
     */
    public function account() {

        echo 'account manage';
        $this->load->model('User_model');
        var_dump($this->User_model->addUser());
        echo $this->config->item('log_date_format');
    }

    /**
     * edit 
     * 编辑账户信息
     * 
     * @access public
     * @return void
     */
    public function edit() {

        echo 'edit account';
    }

    public function show($uid) {

        $this->load->model('User_model');
        $userInfo = $this->User_model->getUserByUid($uid);
        print_r($userInfo);
    }

    
    public function addaccount($uid) {
        echo 'addAccount';
        echo '<br>';
        echo $uid;
        $this->load->model('Account_model');
        $this->Account_model->addAccount($uid);
    }

    public function updateaccount($uid, $a_balance_amount) {
        $this->load->model('Account_model');
        $this->Account_model->updateAccount($uid, $a_balance_amount);
    }
     
    
}
